<!DOCTYPE html>
<html class="pixel-ratio-1" style="background-color: #f1f1f1;">

<head>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
    <meta name="viewport" content="width=375, user-scalabe=no">
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <script src="../../../../public/vendor/flexible/flexible.js"></script>
    <title>新增销售计划明细</title>
    <link rel="stylesheet" type="text/css" href="../../../../public/vendor/weui/weui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../public/css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../../../public/css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="../../../../public/vendor/weui/jquery-weui.css">
    <link rel="stylesheet" href="../../../../public/vendor/select2/select2.css">
    <link rel="stylesheet" href="../../../../public/css/features/salesplan/salesentry.css">
</head>

<body>
    <div id="main-addsalesplan">
        <form id="salesentry-form">
            <div id="salesEntryTem">
                <div class="report-contents-item-box" v-for="(item, index) in entries" :key="item.seq">
                    <!-- <div class="entrycon" style="padding:10px">
                        <div class="entry" style="text-align:center;font-weight:800"></div>
                    </div> -->
                    <div class="weui-cell materialinfo ">
                        <div class="weui-cell_orgs" style="display: -webkit-flex;align-items: center;">
                            <span class="weui-cell__hd" style="margin-right: 73px;position: relative;">
                                <span>物料<span class="red-900 requirentry"
                                        style="position:absolute;left: 30px;">&nbsp;*</span></span>
                            </span>

                            <span class="weui-cell__ft">
                                <select class="weui-select clearContent" style="visibility: hidden;" id="materialid"
                                    v-model="item.material.id" required>
                                </select>
                            </span>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">物料规格</label></div>
                        <div class="weui-cell__bd ">
                            <div class="material-model clearContent masterpad" style="font-size: 16px;"
                                v-text="item.material.model" placeholder="请输入物料规格..."></div>
                            <!-- <input class="weui-input material-model clearContent masterpad" type="text"
                                placeholder="请输入物料规格..." v-model="item.material.model" readonly> -->
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd">
                            <label class="weui-label labqty">计划基本数量</label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input baseQty clearContent masterpad" type="text"
                                placeholder="请输入计划基本数量..." id="baseQty" v-model="item.baseQty" required>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">基本单位</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input material-baseMeasureUnit clearContent masterpad" type="text"
                                placeholder="请输入基本单位..." required v-model="item.material.baseMeasureUnit" readonly>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd">
                            <label class="weui-label labqty">计划辅助数量</label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input fassistQty clearContent masterpad" type="text"
                                placeholder="请输入计划辅助数量..." id="fassistQty" v-model="item.fassistQty" required>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">辅助单位</label></div>
                        <div class="weui-cell__bd material-fassist">
                            <input class="weui-input material-fassistUnit clearContent masterpad" type="text"
                                placeholder="请输入辅助单位..." required v-model="item.material.fassistUnit" readonly>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">是否赠品</label></div>
                        <div class="weui-cell__bd" id="search-gift" style="margin-left: 10px;">
                            <!-- <input class="weui-input clearContent" type="text" id="isGift" placeholder="请选择是否赠品..."> -->
                            <input class="weui-switch clearContent" id="isGift" type="checkbox" style="margin-top:5px"
                                v-model="item.isGift">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div>
                            <div class="weui-uploader__hd">
                                <p class="weui-uploader__title" style="font-size: 16px;">备注</p>
                            </div>
                            <div class="weui-cell__bd" style="width: 325px;">
                                <textarea class="weui-textarea remark clearContent" rows="4" data-plugin="maxlength"
                                    data-placement="bottom-right-inside" placeholder="请输入备注..." id="remark"
                                    v-model="item.remark">
                                </textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="report-contents-item-box operation ">
                <div class="weui-cell operation-child">
                    <a href="javascript:;" class="weui-btn weui-btn_default"
                        style="width: 38%;border-radius:8px;background-color: #fff;margin-left: 0px;"
                        id="returnMain">取消</a>
                    <a href="javascript:;" class="weui-btn weui-btn_primary"
                        style="width: 60%;border-radius:8px;margin-top: 0px;margin-right: 0px;" id="informationSubmit"
                        v-on:click="submit">保存</a>
                </div>
            </div>
        </form>
    </div>

    <script type="text/javascript" src="../../../../public/vendor/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/vue/vue.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/moment/moment.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/weui/weui.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/weui/jquery-weui.min.js"></script>
    <script type="text/javascript" src="../../../../public/js/common/iosadaptation.js"></script>
    <script type="text/javascript" src="../../../../public/js/config/utils.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/select2/select2.full.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/select2/i18n/zh-CN.js"></script>
    <script type="text/javascript" src="../../../../public/js/common/iosadaptation.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/form-entries/form-entries.js"></script>

    <script type="module" src="../../../../public/js/features/biz/salesplan/salesentry.js"></script>
</body>

</html>